<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/libs/jquery.table2excel.js"></script>
<script type="text/javascript" src="<%=path%>/js/controllers/costadjustCtrl.js" ></script>
<script type="text/javascript">
	var ctx="<%=path%>";   
	$("#generate-excel").click(function(){
	    $("#excTable").table2excel({ 
	        // 不被导出的表格行列的CSS class类 如果某列不需要在导出的文件中显示：<td class='.noExl'><td>
	        exclude: ".noExl", 
	        // 导出的Excel文件的名称
	        filename: "费用调整数据.xls"

	    });
	});
</script>
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">费用调整</h3>
			</div>
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form">

					<div class="form-group"> 
						<div class="col-lg-31 clearfix">
							<label class="control-label labelPart">供应商名称：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control"  name="supplierName" placeholder="供应商名称">
							</div>
						</div> 
						
						<div class="col-lg-31 clearfix">
							<label class="control-label labelPart">订单号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" name="queryOrderSn" placeholder="订单号">
							</div>
						</div>
						
						<div class="col-lg-31 clearfix">
							<label class="control-label labelPart">结算单号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" name="settlementBillId" placeholder="结算单号">
							</div>
						</div>
						
						<div class="col-lg-52 time clearfix">
							<label class="control-label labelPart">创建时间：</label>
							<div class="input-daterange input-group">
								<input type="text" class="input input-sm form-control"
									id="date-start" placeholder="起始时间" readonly="readonly" /> <span
									class="input-group-addon">至</span> <input type="text"
									class="input input-sm form-control" id="date-end"
									placeholder="结束时间" readonly="readonly" />
							</div>
						</div>

						<div class="col-lg-34 more clearfix"> 													
							<button type="button" class="searchBtn">搜索</button>
							<button type="button" class="clearBtn">清空</button>							
						</div>
						
					</div> 

					<div class="form-group distant">  

					</div> 
					<ul class="clearfix listwork">
						<li data-target=".modal-add" data-toggle="modal" class="add clearfix"><i></i>增加</li>
						<li class="print clearfix" id="generate-excel" ><i></i>导出</li>
					</ul>
					<div class="table-responsive">
						<table class="table table-bordered gltable left"  id="excTable">
							<thead>
								<tr>
									<th>序号</th>
								    <th>调整工单号</th>
								    <th>订单号</th>
									<th>金额</th>
									<th>供应商</th>
									<th>备注</th> 
									<th>创建时间</th> 
									<th>是否结算</th> 
									<th>结算单号</th> 
								</tr>
							</thead>

							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">  
							 
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">
	
		<div class="record-wrapper page" role="status" aria-live="polite">
			当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
			<label class="inline">
				<select name="dataTable_length" 
					class="form-control input-sm setTableLength" aria-controls="dataTable">
					<option selected="selected" value="10">10</option>
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
					<option value="300">300</option>
					<option value="400">400</option>
					<option value="500">500</option>
					<option value="1000">1000</option>
			</select> 
			</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
		</div>
	

	<nav>
		<!-- 这里显示分页 -->
		<div id="Pagination" class="pagination"></div>
	</nav>
</div>
		
		
	</div>
</div>

	
<!-- 添加s -->
<div class="modal fade modal-add" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">新增</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="addForm">

					<div class="form-group">
					
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>选择供应商：</label>
							<div class="col-sm-81">
								<select name="supplierId" > 
								
								</select>
							</div>
						</div>

						<div class="col-lg-61">
							<label class="col-sm-41 control-label">订单号：</label>
							<div class="col-sm-81">
								<input type="text" name="orderSn" class="form-control input-sm"
									placeholder="订单号">
							</div>
						</div>

					</div>
					<div class="form-group"> 
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label"><span class="red">*</span>调整金额：</label>
							<div class="col-sm-81">
								<input type="text" name="amount" class="form-control input-sm"
									placeholder="对供应商扣钱则为负，否则为正数">
							</div>
						</div>
						
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">备注：</label>
							<div class="col-sm-81">
								<input type="text" name="remark" class="form-control input-sm"
									placeholder="备注信息">
							</div>
						</div>
						
					</div>
					
				</form>
			</div>
			<div class="modal-footer"> 
				<span  class="errorMsg red"></span>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary" id="btn_add">保存</button>
			</div>
		</div>
	</div>
</div>
<!-- 添加e -->

<!-- 修改s -->
<div class="modal fade modal-edit" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">修改后台用户信息</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="updateStaffForm">

					<div class="form-group">
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">姓名：</label>
							<div class="col-sm-81">
								<input type="text" name="nickname" class="form-control input-sm" placeholder="输入姓名">
								<input type="hidden" name="id"/>
							</div>
						</div>

						<div class="col-lg-61">
							<label class="col-sm-41 control-label">联系方式：</label>
							<div class="col-sm-81">
								<input type="text" class="form-control input-sm" name="phone" placeholder="联系方式">
							</div>
						</div>
					</div>
					
					<div class="form-group">	
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">用户类型：</label>
							<div class="col-sm-81">
								<select name="role">
									<!-- <option value="管理员">管理员</option>
									<option value="财务">财务</option>
									<option value="营销">营销</option>
									<option value="客服">客服</option> -->
									
								</select>
							</div>
						</div>
					</div>
					
				</form>
			</div>
			<div class="modal-footer">
				<span  class="errorMsg red updateMsg"></span>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary" id="btn_updatestaff">保存</button>
			</div>
		</div>
	</div>
</div>
<!-- 修改e -->
